package com.paipai.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.paipai.entity.Address;
@FeignClient(name="moon-paipai-user")
public interface UserClient {
	/**
	 * 查询默认用户地址
	 * @param userId
	 * @return
	 */
	@RequestMapping("/findDefaultAddressByUserId")
	@ResponseBody
	Address findDefaultAddressByUserId(@RequestParam("userId") Integer userId);

}
